package com.ruoyi.mixuebingcheng.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;

import java.io.Serializable;

/**
 * VIEW视图对象 view_coupon
 *
 * @author ruoyi
 * @date 2023-10-27
 */
@Data
@ExcelIgnoreUnannotated
public class ViewCouponVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 优惠券id
     */
    @ExcelProperty(value = "优惠券id")
    private Long couponId;

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id")
    private Long userId;

    /**
     * 券名
     */
    @ExcelProperty(value = "券名")
    private String name;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 起效时间
     */
    @ExcelProperty(value = "起效时间")
    private Date effectiveTime;

    /**
     * 失效时间
     */
    @ExcelProperty(value = "失效时间")
    private Date expirationTime;

    /**
     * 1为按百分比折扣，2以元为单位
     */
    @ExcelProperty(value = "1为按百分比折扣，2以元为单位")
    private Long type;

    /**
     * 折扣额度
     */
    @ExcelProperty(value = "折扣额度")
    private Long value;

    /**
     * 1已删除
     */
    @ExcelProperty(value = "1已删除")
    private Long isDeleted;

    /**
     * 状态（0未使用、1已使用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未使用、1已使用")
    private Long status;


}
